
<!DOCTYPE html>
<html lang="zh">
<head>
    <title>简易逻辑</title>
    <{include file="draw_logic/public/header"}>
    <link rel="stylesheet" href="/static/adminlte/plugins/summernote/summernote-bs4.min.css">

</head>
<body class="hold-transition sidebar-mini layout-fixed">
<!-- Site wrapper -->
<div class="wrapper">
    <!-- 顶部导航 -->
    <{include file="draw_logic/public/navbar"}>
    <!--左侧菜单-->
    <{include file="draw_logic/public/sidebar"}>

    <div class="content-wrapper">
        <!-- 面包屑导航 -->
        <section class="content-header">
            <div class="container-fluid">
                <div class="row mb-2">
                    <div class="col-sm-6">
                        <h1>逻辑管理</h1>
                    </div>
                    <div class="col-sm-6">
                        <ol class="breadcrumb float-sm-right">
                            <li class="breadcrumb-item"><a href="<{:url('index')}>">首页</a></li>
                            <li class="breadcrumb-item"><a href="<{:url('index')}>">逻辑列表</a></li>
                            <li class="breadcrumb-item active">新增</li>
                        </ol>
                    </div>
                </div>
            </div>
        </section>

        <!-- 内容区-->
        <section class="content">
            <div class="container-fluid">
                <div class="row">
                    <!-- left column -->
                    <div class="col-md-12">
                        <div class="card card-primary">


                            <form method="post" action="<{:url('action')}>" id="check-form">
                                <div class="card-body">
                                    <div class="form-group">
                                        <label for="title">标题</label>
                                        <input name="title" value="<{$data?$data.title:''}>" type="text" class="form-control" id="title" placeholder="请输入标题">
                                        <input type="hidden" name="key" value="<{$data?$data.key:''}>">
                                    </div>



                                    <div class="form-group">
                                        <label for="content">逻辑</label>
                                        <textarea  name="content" class="form-control"  id="content" rows="10" placeholder="请基于mermaid制作简易导图"><{$data?$data.content:''}></textarea>
                                        <a title="去看语法" target="_blank" href="https://mermaid-js.github.io/mermaid/#/flowchart?id=graph">语法</a>
                                    </div>
                                    <div class="form-group">
                                        <p>
                                           常用类型有：<br>
                                            flowchart LR <Br>
                                            graph TD <br>

                                            TB - top to bottom <br>
                                            TD - top-down/ same as top to bottom <br>
                                            BT - bottom to top <br>
                                            RL - right to left <br>
                                            LR - left to right <br>
                                        </p>
                                    </div>


                                </div>


                                <div class="card-footer">
                                    <button type="button" onclick="form_submit()" class="btn btn-primary">提交</button>
                                    <a style="margin-left: 30px" href="<{:url('index')}>" class="btn btn-default">返回</a>
                                </div>
                            </form>
                        </div>

                    </div>

                </div>

            </div>
        </section>
    </div>



</div>
<!-- ./wrapper -->

<{include file="draw_logic/public/footer"}>


</body>
</html>
